Analyzing Histograms Extracted From ROIs
You can use the Histogram tool that is available in the Tools box to visualize and analyze the distribution of intensity values of image data that corresponds to the labeled voxels of a region of interest. Values are calculated over a set interval to plot the histogram and extract basic statistics, such as the minimum, maximum, mean, and median intensity values within the corresponding image data.
Click the Histogram tool in the Tools box on the Data Properties and Settings panel to open the Histogram Analysis dialog, as shown in the following screen capture.
Histogram Analysis dialog
The following statistics are available for analyzing histograms of image data that correspond to the labeled voxels of the region of interest. You should note that statistics are calculated from the histogram and not directly from the data. This means that selecting the correct bin count is critical for achieving meaningful results and some experimentation might be needed to determine an appropriate width.
However, there are various useful guidelines and methods to compute bin counts. These include the 'square-root choice', which takes the square root of the number of data points in the sample and rounds to the next integer, as well as Sturges' formula, Freedman–Diaconis' choice, and others. The Wikipedia page on histograms (https://en.wikipedia.org/wiki/Histogram) lists eight such methods.
| Description | |
|---|---|
| Tools panel | The tools at the top of the dialog let you to pan, zoom, and reset the histogram, as well as save the figure and export the plotted values in the comma-separated values (*.csv extension) file format (see Histogram Tools). |
| Histogram | Displays the plotted values, in which each column represents a range of the values and the height of a column corresponds to how many values are in that range. |
| Bin count |
Determines the interval in which values will be binned.
Note It is especially important to specify the optimal bin size. Bins that are too wide can hide important details about the distribution, while bins that are too narrow can cause spikes just by coincidence. |
| Scaling | Lets you select scaling for the Y-axis — Linear or Log. |
| Statistics |
Lets you select the measurements that will be computed. Selected measurements are shown on the histogram and in the Statistics box.
You should note that measurements are calculated from the histogram, not directly from the data. 5th Percentile… Is the value below which 5% of the values in the distribution may be found. 95th Percentile… Is the value below which 95% of the values in the distribution may be found. Full Width Half Maximum… Is the width of the curve as measured between points on the Y-axis which are at the peak half maximum level. Note FWHM can be more sensitive to bin count than other statistics. It might not be possible to compute FWHM when the bin count becomes too high and there are not enough bins with values greater than 'Maximum/2'. Maximum… Is the maximum intensity value within the distribution. Mean… Is the mean intensity value within the distribution. Median… Is the median intensity value within the distribution. Minimum… Is the minimum intensity value within the distribution. Mode… Is the most commonly occurring value within the distribution. Standard Deviation… Is the population standard deviation, which is a measure of the amount of variation or dispersion within a set of values. Shown as the range from the mean value on the histogram. Note Although both population and sample standard deviations measure variability, there are differences between these two computations. If you are calculating the population standard deviation, then you divide by 'n', which is the number of data values. If you are calculating the sample standard deviation, then you divide by 'n -1', which is one less than the number of data values. This means that the sample standard deviation will have greater variability than that of the population. Sum… Is the integral of all intensities of all of the pixels. |
| Dataset | Lets you select the dataset from which values will be extracted. |
| Show legend | If selected, a legend with the selected measurements will be superimposed on the plotted values. |
| Copy to Clipboard | Copies the selected statistics to the clipboard, which can be pasted into any word processing or spreadsheet application. |
The tools at the top of the Histogram dialog let you to pan, zoom, and reset the histogram, as well as save the figure and export data.
| Item | Icon | Description |
|---|---|---|
| Pan |
|
Pans or zooms the figure as described below.
Pan… Click with the left mouse button and then drag to pan the figure. Zoom on the Y axis… Click with the right mouse button and then drag up and down to Zoom in and Zoom out on the Y axis. Zoom on the X axis… Click with the right mouse button and then drag left and right to Zoom in and Zoom out on the X axis. |
| Zoom |
|
Zooms to a drawn rectangle, which can be defined by dragging your cursor over the area that you want to zoom. |
| Reset |
|
Resets the original view of the figure. |
| Save |
|
Saves the figure as a bitmap image, vector graphic, or in the PDF file format. The figure can also be saved as raw data or PGF code.
Standard image files (*.jpeg, *.jpg, *.png, *.tif, *.tiff extensions)… Saves the histogram or profile as a bitmap image in the screen resolution. Postscript files (*.eps, *.ps extensions)… Saves the histogram or profile as an encapsulated postscript or postscript file. These types of files have a selectable resolution and provide high-quality graphics for publications. PGF code for LaTeX (.pgf extension)… Saves the histogram or profile in the Portable Graphics file format. The standard LaTeX picture environment can be used as a front end for PGF merely by using the Raw RGBA bitmap (*.raw, *.rgba extensions)… Saves the histogram or profile as a raw bitmap image file, in which the file contains only a list of pixel colors and nothing else. Scalable vector graphics (*.svg, *.svgz extensions)… Saves the histogram or profile in an XML-based vector image format. The SVG specification is an open standard developed by the World Wide Web Consortium (W3C). SVG images and their behaviors are defined in XML text files. Portable document format (*.pdf extension)… Saves the histogram or profile in the Adobe PDF file format. |
| Settings |
|
Opens the Figure options dialog, shown below, in which you can select the plotted ranges, scaling, and labels for the axes.
|
| Export to CSV |
|
Exports the plotted values in the comma-separated values (*.csv extension) file format. |
- Select the required region of interest in the Data Properties and Settings panel.
- Click the Histogram
button in the Tools box in the bottom section of the Data Properties and Settings panel.
- Select the dataset from which the intensity values will be extracted in the Dataset drop-down menu.
The histogram of the selected image data that corresponds to the labeled voxels of the ROI appears.
- Do the following, as required.
- Select the optimal bin size for the data.
- Plot the Y-axis in log scale, if required.
- Select the required statistics (see Statistics).
- Adjust the figure with the tools at the top of the dialog (see Histogram Tools).
Note You can also save an image of the histogram or export the plotted data in the CSV file format.
Note You can add a legend to the histogram by checking Show legend.
